import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import axios from '@/axios.conf'

Vue.prototype.$axios = axios

Vue.config.productionTip = false

// if (localStorage.getItem('token')) {
//   const token = `${localStorage.getItem('token')}`
//   store.commit('setToken', token)
//   const conf = apiConfig.user.loginTest()
//   axios(conf).catch(e => console.log(e))
// } else {
//   localStorage.clear()
// }

// if (localStorage.getItem('username')) {
//   const user = `${localStorage.getItem('username')}`
//   store.commit('setUser', user)
// }


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
